package com.kexun.dao;

import com.kexun.db.DBUtils;
import com.kexun.entity.Manage;

import java.util.List;

public class ManageDao {

    public static boolean add(Manage manage){
        try {
            return DBUtils.add(manage);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return false;
    }

    public static List<Manage> list(){
      return   DBUtils.find("select * from manage",Manage.class);
    }

}
